<%let message=data.value;let imgUrl = window.location.host;let hd = imgUrl.split('.njdtwise')[0];imgUrl = hd == 'www' ? 'http://www.njdtwise.com/images/' : 'http://dev.njdtwise.com/images/';%>
<div class="taskOpenBack">
    <div class="taskOpen">
        <div class="infoHead" style="margin-bottom: 10px;">
            <div class="line"></div>
            <span class="infoTitle">维修详情</span>
        </div>
        <div class="infoBody">
            <div class="row routeRow">
                <div class="left">
                    <p>建设地点</p>
                    <input class="input" type="button" value="<%- message.pointName%>">
                </div>
                <div class="right">
                    <p>建设时间</p>
                    <input class="input" type="button" value="<%- message.buildTime%>">
                </div>
            </div>
            <div class="row routeRow">
                <div class="left">
                    <p>器材厂家</p>
                    <input class="input" type="button" value="<%- message.manufacturer%>">
                </div>
                <div class="right">
                    <p>器材类型</p>
                    <input class="input" type="button" value="<%- message.equipmentType==1?'体彩':'自建'%>">
                </div>
            </div>
            <div class="row">
                <div class="left">
                    <p>所属街道</p>
                    <input class="input" id="layTime" type="button" value="<%- message.townName%>">
                </div>
                <div class="right">
                    <p>所属社区</p>
                    <input class="input" type="button" value="<%- message.villageName%>">
                </div>
            </div>
            <div class="row">
                <div class="left">
                    <p>维修等级</p>
                    <input class="input" type="button" value="<%- message.maintainGrade==1?'一般维修':'紧急维修'%>">
                </div>
                <div class="right">
                    <p>使用寿命</p>
                    <input class="input" type="button" value="<%- message.useTime%>年">
                </div>
            </div>
            <div class="row">
                <div class="left">
                    <p>开始时间</p>
                    <input class="input" type="button" value="<%- message.beginTime%>">
                </div>
                <div class="right">
                    <p>截止时间</p>
                    <input class="input" type="button" value="<%- message.endTime%>">
                </div>
            </div>
            <div class="row">
                <div class="left">
                    <p>完成时间</p>
                    <input class="input" type="button" value="<%- message.status!=2?'未完成':message.finishTime%>">
                </div>
                <div class="right">
                    <p>维修状态</p>
                    <input class="input" type="button" value="<%- message.status==1?'待维修':'已维修'%>">
                </div>
            </div>
            <div class="row">
                <div class="left">
                    <p>上报人</p>
                    <input class="input" type="button" value="<%- message.userName%>">
                </div>
                <div class="right">
                    <p>维修人</p>
                    <input class="input" type="button" value="<%- message.dealName%>">
                </div>
            </div>
            <div class="row">
                <div class="left">
                    <p>维修人电话</p>
                    <input class="input" type="button" value="<%- message.phone%>">
                </div>
            </div>
            <div class="row" style="height: .6rem">
                <textarea name="" id="routeMsg" cols="30" rows="10" placeholder="备注信息" value="<%- message.reportRemark%>"><%- message.reportRemark%></textarea>
            </div>
            <div class="row">
                <%if(message.status==1){%>
                    <div class="left" style="display: block;width: 100%">
                        <div style="padding-left: 10px;margin-bottom: 5px;">损坏照片</div>
                        <%$.each(data.reportPath,function(index,el){
                            let _url=imgUrl+el.filePath;%>
                            <img src='<%- _url%>' style="width: 100%">
                        <%})%>
                    </div>
                <%}else if(message.status==2){%>
                    <div class="left" style="display: block;width: 49%">
                        <div style="padding-left: 10px;margin-bottom: 5px;">损坏照片</div>
                        <%$.each(data.reportPath,function(index,el){
                            let _url=imgUrl+el.filePath;%>
                            <img src='<%- _url%>' style="width: 100%;border: 1px solid #eee;">
                        <%})%>
                    </div>
                    <div class="right" style="display: block;width: 49%">
                        <div style="padding-left: 10px;margin-bottom: 5px;">维修完成照片</div>
                        <%$.each(data.dealPath,function(index,el){
                            let _url=imgUrl+el.filePath;%>
                            <img src='<%- _url%>' style="width: 100%;border: 1px solid #eee;">
                        <%})%>
                    </div>
                <%}%>
            </div>
        </div>
        <img src="img/user/6904332C-0AF0-402E-B315-6EE99B1DC08B@3x.png" class="closeInfo" id="closeInfo">
    </div>
</div>